<%@ page import="com.ccc3gc.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: 95184
  Date: 2024/9/18
  Time: 下午7:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    User user = (User) request.getAttribute("user");
%>
<h2>修改用户</h2>
<form action="changeUser" enctype="multipart/form-data" method="post">
    用户名: <input type="text" name="username" value="<%=user.getUserName()%>"> <br/>
    照片: <img src="upfiles/<%=user.getUserPic()%>" alt="ccc" style="width: 100px;height: 100px">
    <input type="file" name="userPic">
    <input type="hidden" name="userId" value="<%=user.getUserId()%>">
    <input type="submit" value="修改">
</form>
</body>
</html>
